package com.nulldev.util.net.packets.generic;

import com.nulldev.util.net.packets.APILevel;
import com.nulldev.util.net.packets.NetInfo;
import com.nulldev.util.net.packets.UniversalPacket;

@APILevel(level = 1)
public class UnsupportedOpeartion extends UniversalPacket {

	public UnsupportedOpeartion() {
		super("SDTP: Feature unsupported", "sdtp.denied", "");
	}

	@Override
	public void client(byte[] data, byte[] raw, final NetInfo client) {
		synchronized (System.err) {
			synchronized (System.out) {
				System.err.println("Error: Server didn't allow that request.");
			}		
		}
	}

	@Override
	public void server(byte[] data, byte[] raw, final NetInfo connection) {
	}

}
